﻿using System;
using StructureMap;

namespace Dgg.Anug.Cqrs.Core.Infrastructure.Bootstrapping
{
	public class ApplicationTeardown
	{
		public void WhenEndingRequest(object sender, EventArgs e)
		{
			ObjectFactory.ReleaseAndDisposeAllHttpScopedObjects();
		}
	}
}
